export interface IDataItemModel {
    target: string;
    datapoints: [val: number, timespan: number][]
}

export class ChartConfig {
    legendPosition: 'right' | 'bottom' = 'bottom';
    infoWidth = 300;
    infoHeight = 300;
    unit = 'value';
    title = 'Monitor';
    showTimeViewMode = false;
    showImageToolbox = true;
    seriesAreaStyle: undefined;

    // "yyyy-MM-dd hh:mm:ss.S" ==> 2006-07-02 08:09:04.423
    // "yyyy-M-d h:m:s.S" ==> 2006-7-2 8:9:4.18
    // h:mm ==> 4:00, 11:30
    timeAxisFormatter: string = 'h:mm';

    constructor() {

    }
}